From d2ab912dfe49558cfed69516ade9df0bd7c721bc Mon Sep 17 00:00:00 2001 From: "chris@kneesaa.uk.xensource.com" Date: Thu, 17 Aug 2006 11:34:13 +0100 Subject: [PATCH] [qemu] Default monitor/serial ports to /dev/null if -nographic. qemu-dm runs daemonized and the default for -nographic is to redirect the monitor and serial ports to stdio which causes qemu-dm to busy read from stdin. Change the default for -nographic to redirect the monitor and serial ports to /dev/null. Based on a patch from: Steven Smith Signed-off-by: Christian Limpach --- tools/ioemu/vl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 76c4c76fc6..b3d7a82f51 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -6036,10 +6036,11 @@ int main(int argc, char **argv) } break; case QEMU_OPTION_nographic: - pstrcpy(monitor_device, sizeof(monitor_device), "stdio"); + if(!strcmp(monitor_device, "vc")) + pstrcpy(monitor_device, sizeof(monitor_device), "null"); if(!strcmp(serial_devices[0], "vc")) pstrcpy(serial_devices[0], sizeof(serial_devices[0]), - "stdio"); + "null"); nographic = 1; break; case QEMU_OPTION_kernel: -- 2.30.2